package com.itheima.demo2;

public class Demo {
    public static void main(String[] args) {
        Student stu1 = new Student("张三", 23);
        Student stu2 = new Student("张三", 23);

        System.out.println(stu1 == stu2);
        System.out.println(stu1.equals(stu2));


        String s1 = "abc";
        StringBuilder sb = new StringBuilder("abc");
        System.out.println(s1.equals(sb));
        System.out.println(sb.equals(s1));
    }
}
